name = "怪物血条"
description = "显示史诗怪和小怪的血条，每个BOSS都有自己的颜色主题"
author = "温如言"
version = "1.0.0"

forumthread = ""
api_version_dst = 10

priority = 0

icon_atlas = "modicon.xml"
icon = "modicon.tex"

dst_compatible = true

server_only_mod = true
all_clients_require_mod = true
server_filter_tags = { "Epic Healthbar" }

local function header(label, client)
	return { name = "", label = label, options = { { description = "", data = "" } }, default = "", client = client }
end

local options_offset = {}
for i = -100, 100, 10 do
	if i < 0 then
		options_offset[#options_offset + 1] = { description = "" .. i, data = i, hover = -i .. " 单位往左" }
	elseif i == 0 then
		options_offset[#options_offset + 1] = { description = "禁用", data = 0, hover = "不偏移" }
	else
		options_offset[#options_offset + 1] = { description = "" .. i, data = i, hover = i .. " 单位往右" }
	end
end

configuration_options =
{	
	{
		name = "damage",
		label = "伤害量",
		hover = "显示伤害或治疗量",
		options =
		{
			{ description = "启用", data = true, hover = "显示数量" },
			{ description = "禁用", data = false, hover = "隐藏数量" },
		},
		default = true,
	},
			
	{
		name = "offset",
		label = "水平偏移",
		hover = "将杆从中心移开",
		options = options_offset,
		default = 0,
	},
		
	{
		name = "noepic",
		label = "小怪血量",
		hover = "显示小怪血量",
		options =
		{
			{ description = "启用", data = true, hover = "显示小怪血量" },
			{ description = "禁用", data = false, hover = "仅显示史诗怪血量" },
		},
		default = true,
	},
}

local num_client_options = 0
for i = 1, #configuration_options do
	if configuration_options[i].name ~= "" and configuration_options[i].client then
		num_client_options = num_client_options + 1
	end
end